#pragma once
#ifndef __GAMEOVER_SCENE_H__
#define __GAMEOVER_SCENE_H__

#include "cocos2d.h"
#include <string>

using namespace std;

class GameOverLayer : public cocos2d::Layer
{
public:
	GameOverLayer(int res, int gate, string strmsg) :result(res), gateid(gate), msg(strmsg) {};
	virtual ~GameOverLayer();

	static cocos2d::Scene* createScene(int res, int gateid,const string & msg);

	bool init();
	//CREATE_FUNC(GameOverLayer);
	static GameOverLayer * create(int res, int gateid, string msg);

	void gameOverDone();

private:
	int result;
	int gateid;
	string msg;
};

#endif   //__GAMEOVER_SCENE_H__
